{extend name='admin@public/content'}
{block name="content"}
<script>
    window.laydate.render({range: true, elem: '#range-date'});
</script>
<!-- 表单搜索 结束 -->
<div class="layui-table-tool">
    <div class="layui-table-tool-temp">
        <div class="layui-btn-container">
            <a data-open='{:url("$classuri/add")}' class="layui-btn layui-btn-sm layui-btn-normal" lay-event="getCheckData">添加分类</a>
        </div>
    </div>
</div>
<form onsubmit="return false;" data-auto="true" method="post">
    <!--{empty name='list'}-->
    <p class="help-block text-center well">没 有 记 录 哦！</p>
    <!--{else}-->
    <input type="hidden" value="resort" name="action">
    <table class="layui-table" lay-skin="line">
        <thead>
        <tr>
            <th class='text-left nowrap'>分类名称</th>
            <th class='text-left nowrap'>状态</th>
            <th class='text-left nowrap'>操作</th>
        </tr>
        </thead>
        <tbody>
        {foreach $list['list'] as $key=>$vo}
        <tr>
            <td class='text-left nowrap'>
                {$vo.name|default="<span class='color-desc'>暂无</span>"|raw}
            </td>
            <td class='text-left nowrap'>
                {$vo.statusName|default="<span class='color-desc'>暂无</span>"|raw}
            </td>
            <td class='text-left nowrap'>

                <div class="layui-table-cell laytable-cell-244-0-7">
                    <span class="text-explode">|</span>
                    <a data-open='{:url("$classuri/edit")}?id={$vo.id}' class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit">
                        <i class="layui-icon layui-icon-edit"></i>编辑
                    </a>
                </div>
            </td>

        </tr>
        {/foreach}
        </tbody>
    </table>
    {if isset($list.page)}<p>{$list.page|raw}</p>{/if}
    <!--{/empty}-->
</form>
{/block}
{block name="script"}
<!--表单初始化-->
<script>
    window.laydate.render({range: true, elem: '#create_at'});
    window.form.render();
</script>
<!--引入标签设置-->
{/block}